package edu.sctu.practice.class01.zhangwang.day2015_10_14.text01;

/**
 * Created by Z_W on 2015/10/14.
 */
public class TreadText extends Thread {
    private String city;
    public TreadText(String city){
        this.city = city;
    }
    @Override
    public void run() {
        super.run();
        for (int i = 0;i<10;i++){
            System.out.println(city);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
